laksmi.storage = {		//wrapper for session and local storage to handle objects, not just strings

	session : {
		get : function(key){
			try{
				return JSON.parse(sessionStorage.getItem(key));
			} catch(e){
				return sessionStorage.getItem(key);
			}
		},
	
		set : function(key, json){
			sessionStorage.setItem(key, JSON.stringify(json));
			return json;
		},
	
		remove : function(key){
			return sessionStorage.removeItem(key);
		},
	
		add : function(key, json){
			var originalJson = this.get(key);
			json = jQuery.extend(originalJson, json);
			return this.set(key, json);
		}
	},

	local : {
		get : function(key){
			try{
				return JSON.parse(localStorage.getItem(key));
			} catch(e){
				return localStorage.getItem(key);
			}
		},
	
		set : function(key, json){
			localStorage.setItem(key, JSON.stringify(json));
			return json;
		},
	
		remove : function(key){
			return localStorage.removeItem(key);
		},
	
		add : function(key, json){
			var originalJson = this.get(key);
			json = jQuery.extend(originalJson, json);
			return this.set(key, json);
		}
	}
};